#include "Camera.h"
#include "Player.h"

#include "../SGD Wrappers/SGD_InputManager.h"


Camera::Camera() {		
	SetCameraPos(SGD::Point(0.0f, 0.0f));
}


Camera::~Camera() {

}

void Camera::Update(float elapsedtime, SGD::Size wsize){

	//	Set Camera Position
	SetCameraPos(SGD::Point(Focus->GetPosition().x, Focus->GetPosition().y));	//	player position

		//	Set Camera Offset based off player pos
	if (Focus != nullptr){
		SetCameraOffset(SGD::Point(GetCameraPosition().x - (1024 / 2),
			GetCameraPosition().y - (768 / 2)));
	}		
}